package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsPublicTeamMapper;
import com.hckjsec.cloud.domain.AppletsPublicTeam;
import com.hckjsec.cloud.service.IAppletsPublicTeamService;

/**
 * 团队介绍主Service业务层处理
 * 
 * @author cyt
 * @date 2021-09-04
 */
@Service
public class AppletsPublicTeamServiceImpl implements IAppletsPublicTeamService 
{
    @Autowired
    private AppletsPublicTeamMapper appletsPublicTeamMapper;

    /**
     * 查询团队介绍主
     * 
     * @param teamId 团队介绍主ID
     * @return 团队介绍主
     */
    @Override
    public AppletsPublicTeam selectAppletsPublicTeamById(Long teamId)
    {
        return appletsPublicTeamMapper.selectAppletsPublicTeamById(teamId);
    }

    /**
     * 查询团队介绍主列表
     * 
     * @param appletsPublicTeam 团队介绍主
     * @return 团队介绍主
     */
    @Override
    public List<AppletsPublicTeam> selectAppletsPublicTeamList(AppletsPublicTeam appletsPublicTeam)
    {
        return appletsPublicTeamMapper.selectAppletsPublicTeamList(appletsPublicTeam);
    }

    /**
     * 新增团队介绍主
     * 
     * @param appletsPublicTeam 团队介绍主
     * @return 结果
     */
    @Override
    public int insertAppletsPublicTeam(AppletsPublicTeam appletsPublicTeam)
    {
        return appletsPublicTeamMapper.insertAppletsPublicTeam(appletsPublicTeam);
    }

    /**
     * 修改团队介绍主
     * 
     * @param appletsPublicTeam 团队介绍主
     * @return 结果
     */
    @Override
    public int updateAppletsPublicTeam(AppletsPublicTeam appletsPublicTeam)
    {
        return appletsPublicTeamMapper.updateAppletsPublicTeam(appletsPublicTeam);
    }

    /**
     * 批量删除团队介绍主
     * 
     * @param teamIds 需要删除的团队介绍主ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicTeamByIds(Long[] teamIds)
    {
        return appletsPublicTeamMapper.deleteAppletsPublicTeamByIds(teamIds);
    }

    /**
     * 删除团队介绍主信息
     * 
     * @param teamId 团队介绍主ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicTeamById(Long teamId)
    {
        return appletsPublicTeamMapper.deleteAppletsPublicTeamById(teamId);
    }
}
